package com.unknowpupil.sell.common.enums;

import lombok.Getter;

/**
 * @Classname: PublicEnums
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/12/29 23:55
 * @Description:
 * @Version: 1.0
 */

public class PublicEnums {
    /**
     * 商品状态枚举
     */
    @Getter
    public enum ProductStatusEnums {
        UP(0, "在架"),
        DOWN(1, "下架");
        private Integer code;
        private String message;

        ProductStatusEnums(Integer code, String message) {
            this.code = code;
            this.message = message;
        }

    }

    /**
     * 订单状态
     */
    @Getter
    public enum OrderStatusEnums {
        NEW(0, "新订单"),
        FINISHED(1, "完结订单"),
        CANCEL(2,"已取消订单");
        private Integer code;
        private String message;

        OrderStatusEnums(Integer code, String message) {
            this.code = code;
            this.message = message;
        }

    }
    /**
     * 支付状态
     */
    @Getter
    public enum PayStatusEnums {
        WAIT(0, "等待支付"),
        SUCCESS(1, "支付成功");
        private Integer code;
        private String message;

        PayStatusEnums(Integer code, String message) {
            this.code = code;
            this.message = message;
        }

    }
}
